package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2022-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Payment对象", description="")
public class Payment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "请款部门")
    @TableField("department_id")
    private Integer departmentId;

    @ApiModelProperty(value = "请款原因")
    private String reason;

    @ApiModelProperty(value = "收款单位")
    private String payee;

    @ApiModelProperty(value = "开户行")
    @TableField("opening_bank")
    private String openingBank;

    @ApiModelProperty(value = "账号")
    @TableField("account_number")
    private String accountNumber;

    @ApiModelProperty(value = "付款方式")
    @TableField("payment_method")
    private String paymentMethod;

    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    @ApiModelProperty(value = "账目状态   1 审核中 2 通过  3 拒绝")
    @TableField("account_status")
    private Integer accountStatus;

    @TableField("creator_by")
    private String creatorBy;

    @TableField("creation_time")
    private Date creationTime;

    @ApiModelProperty(value = "支付方式")
    @TableField(exist = false)
    private String payType;

    @ApiModelProperty(value = "审核人")
    @TableField(exist = false)
    private List<String> approval;

    @ApiModelProperty(value = "抄送人")
    @TableField(exist = false)
    private List<String> notify;

    @ApiModelProperty(value = "审核记录")
    @TableField(exist = false)
    private List<AuditList> auditList;

    @ApiModelProperty(value = "请款日期")
    @TableField(exist = false)
    private String date;

    @ApiModelProperty(value = "公司名称")
    @TableField(exist = false)
    private String companyName;

    @ApiModelProperty(value = "部门")
    @TableField(exist = false)
    private String department;

    @ApiModelProperty(value = "城市")
    @TableField(exist = false)
    private String city;


    @ApiModelProperty(value = "紧急程度")
    @TableField(exist = false)
    private String urgency;

    @ApiModelProperty(value = "钉钉申请人Id")
    @TableField(exist = false)
    private String userId;

    @ApiModelProperty(value = "钉钉申请部门Id")
    @TableField(exist = false)
    private Integer deptId;

    @ApiModelProperty(value = "是否审批")
    @TableField(exist = false)
    private Integer isApproved;
}
